package com.cbs.database;

import java.util.List;
import java.util.Map;

/**
 * Created by brochexu on 9/30/14.
 */
public interface Database {
    List<Map<String, Object>> query(String sql);

    Map<String, Object> fetch(String sql);

    Object scalar(String sql);

    void execute(String sql);

    int insert(String sql);

    int update(String sql);

    int delete(String sql);

    void executeBatch(List<String> sqls);
}
